All Functions of Week 1

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

setwd

{base}

Set Working Directory

summary

{base}

Obtain summary statistics or detailed regression output

ordered

{dplyr}

Create an ordered factor

with

{base}

evaluate expression in the context of a data frame

cut

{base}

Convert Numeric to Factor

c

{base}

Combine values/vectors into a vector

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

round

{base}

Rounds numbers

mutate

{dplyr}

Modify/create a column in a data frame

library

{base}

Load an R package

The end!